(function () {
    var init, initForm;
    
    init = function () {
        var forms, i;
        forms = document.getElementsByTagName('form');
        for (i = forms.length; i--;) {
            initForm(forms[i]);
        }
    };
    
    initForm = function (form) {
        var input;
        input = document.createElement('input');
        input.type = 'hidden';
        input.name = 'anticaptchacode';
        input.value = '{$CODE}';
        form.appendChild(input);
    };
    
    if (window.addEventListener) {
        addEventListener('DOMContentLoaded', init, false);
    } else {
        window.attachEvent('onload', init);
    }
}());